package app.services.impl;

import app.models.ParametroSistema;
import app.repositories.ParametroSistemaRepository;
import app.repositories.Repository;
import app.services.ParametroSistemasService;
import br.com.caelum.vraptor.ioc.Component;

@Component
public class ParametroSistemasServiceImpl extends GenericServiceImpl<ParametroSistema, Long> implements ParametroSistemasService {

	private final ParametroSistemaRepository repository;
	
	public ParametroSistemasServiceImpl (ParametroSistemaRepository repository){
		this.repository = repository;
		super.setGenericRepository((Repository<ParametroSistema, Long>) repository);
	}
	
	public ParametroSistema findByParam(String nome) {
		return repository.findByParam(nome);
	}
	
}
